<template>
  <OptionSelect :="$attrs" :options="typeOptions" @change="onChange" />
</template>

<script setup lang="ts">
import OptionSelect from '@/components/form-item/OptionSelect.vue'
import { typeOptions } from '../constant'

const props = withDefaults(defineProps<{ data?: any }>(), { data: () => ({}) })

const onChange = () => {
  props.data.fileName = ''
  props.data.url = ''
}
</script>
